package dynamic.jdk;

import java.lang.reflect.Proxy;

public class MainMethod {
    public static void main(String[] args) {
       Transportable express = (Transportable) Proxy.newProxyInstance(MainMethod.class.getClassLoader(),
                                                                        Seller.class.getInterfaces(),
                                                                        new CountTimeInvocationHandler(new Seller()));
        express.transport();
    }
}
